// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package edu.uwlax.cs.oayonlinestore.entities;

/**
 * @see edu.uwlax.cs.oayonlinestore.entities.OrderItem
 */
public class OrderItemImpl extends OrderItem {
	private static final long serialVersionUID = -4215726662607594646L;

	public float calcTotalPrice() {
		float discount = getPrice() * (getDiscount() / 100);
		return getQuantity() * (getPrice() - discount);
	}

}